<script setup>
import { ref } from 'vue';
import ChildComp from '@/components/ChildComp.vue'

const isShow = ref(true)
</script>

<template>
<div>
  <ChildComp v-if="isShow"></ChildComp>
  <button @click="isShow = false">干掉他</button>
</div>
</template>